package com.wxq.service.impl;

import com.wxq.bean.User;
import com.wxq.dao.IUserDao;
import com.wxq.dao.impl.UserDaoImpl;
import com.wxq.service.IUserService;

/**
 * @ClassName UserServiceImpl
 * @Description: TODO
 * @Author Admin
 * @Date 2021/3/9
 * @Version V1.0
 **/
public class UserServiceImpl implements IUserService {
    private IUserDao userDao = new UserDaoImpl();

    @Override
    public boolean saveUser(User user) {
        return userDao.saveUser(user);
    }

    @Override
    public User findUser(String name, String password) {
        return userDao.findUser(name, password);
    }
}
